
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

window.Vue = require('vue');

import ElementUI from 'element-ui'    //引入element－ui
import 'element-ui/lib/theme-chalk/index.css' //引入element－ui所需的css样式资源文件
import VueRouter from 'vue-router';
import router from './routes';

import VueI18n from 'vue-i18n'


/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 类目管理
 商品管理
 订单列表
 会员管理
 图片管理
 */
Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.use(VueI18n) 
Vue.component('newapp', require('./components/App.vue').default);
Vue.component('login', require('./components/Login.vue').default);
Vue.component('welcome', require('./components/index/welcome.vue').default);

const app = new Vue({
    el: '#app',
    router
});


const i18n =new VueI18n({
	locale:'zh',
	messages:{
		'zh':require('./common/lang/zh'),
		'en':require('./common/lang/en'),
	}
	
});





